package com.zhangtao.demo.common.enums;

import org.apache.commons.lang3.StringUtils;

public enum RedisData {
	string,
	hash,
	set,
	zset,
	list;
	public static boolean contains(String type) {
		RedisData[] vs = RedisData.values();
		boolean contains = false;
		for(int i = 0, a = vs.length; i < a; i++) {
			contains = StringUtils.equals(vs[i].name(), type);
			if (contains) {
				break;
			}
		}
		return contains;
	}
}
